package edu.pku.sei.transformation.qvt;

import org.eclipse.ui.IStartup;

import edu.pku.sei.transformation.codegen.CodegenRegister;
import edu.pku.sei.transformation.engine.EngineRegisty;
import edu.pku.sei.transformation.qvt.action.QVTCodegenFactory;
import edu.pku.sei.transformation.qvt.engine.mediniqvt.MediniQVTAdapter;
import edu.pku.sei.transformation.qvt.engine.modelmorf.ModelMorfAdapter;

public class QVTStartup implements IStartup {

	public void earlyStartup() {
		System.out.println("qvt bundle started");

		CodegenRegister.INSTANCE.registActionFactory(new QVTCodegenFactory());

		EngineRegisty.getRegisty().registEngine(new ModelMorfAdapter());
		EngineRegisty.getRegisty().registEngine(new MediniQVTAdapter());
	}

}
